<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">    
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
    <link rel="stylesheet" href="./css/style.min.css">
    <title>商品不存在</title>
</head>
<script type="text/javascript">
    window.onload=function () {
            document.addEventListener('touchstart',function (event) {
                if(event.touches.length>1){
                    event.preventDefault();
                }
            })
            var lastTouchEnd=0;
            document.addEventListener('touchend',function (event) {
                var now=(new Date()).getTime();
                if(now-lastTouchEnd<=300){
                    event.preventDefault();
                }
                lastTouchEnd=now;
            },false)
        }
</script>

<body>
<div id="empty-pg" class="empty-pg">
<header class="cl" v-show="header.show">
    <div class="nav-bar cl">
<!--         <span class="goback arrow_l" @click="goback"></span> -->
        <span class="page-name">商品不存在</span>
    </div>
</header>
<div class="img-wrap"><img src="./images/box-empty.png"></div>
<h2>该商品已下架，请查看其它商品！</h2>
<p><a href="#" class="btn-back" @click.prevent="goList">返回</a></p>
    <toast ref="toast"></toast>
</div>
    <script src="./js/lib/vue.js"></script>
    <script src="http://static.jdhui.com/lib/vue-resource/1.2/vue-resource.js"></script>
    <script src="./js/min/config.min.js"></script>
    <script type="text/javascript" src="./js/min/common.min.js"></script>
     <script src="./js/min/component.min.js"></script>
    <script>
    var store_id=APP.getQueryString("storeid");
    var toast = new component.popup.toast();
    Vue.http.options.xhr = {
        withCredentials: true
    }
    Vue.http.options.credentials = true;
    var idxpg=new Vue({
        el: "#empty-pg",
        data: {
            header:{
                show: !APP.iswechat()
            },
            backLing:"goods-list.html?storeid="+store_id
        },
         component: {
            'toast': toast
        },
        mounted: function () {
            
        },
        methods:{
            goList:function(){
                window.location.href=this.backLing;
            }
        }
    })
    </script>
</body>

</html>
